import request from '@/utils/request'

// 查询用户文章评论列表
export function listDetailReview(query) {
  return request({
    url: '/business/detailReview/list',
    method: 'get',
    params: query
  })
}

// 查询用户文章评论详细
export function getDetailReview(reviewId) {
  return request({
    url: '/business/detailReview/' + reviewId,
    method: 'get'
  })
}

// 新增用户文章评论
export function addDetailReview(data) {
  return request({
    url: '/business/detailReview',
    method: 'post',
    data: data
  })
}

// 修改用户文章评论
export function updateDetailReview(data) {
  return request({
    url: '/business/detailReview',
    method: 'put',
    data: data
  })
}

// 删除用户文章评论
export function delDetailReview(reviewId) {
  return request({
    url: '/business/detailReview/' + reviewId,
    method: 'delete'
  })
}
